// 切换逻辑
function switchFn(selectors) {
	const dotDoms = document.querySelectorAll(selectors);
	dotDoms.forEach((dotDom) => {
		dotDom.addEventListener('click', () => {
			for (const dom of dotDoms) {
				dom.classList.remove('active');
			}
			dotDom.classList.add('active');
		});
	});
}

// team 下 dot 切换逻辑
switchFn('.team .dots .dot');

// CLIENTS 下 dot 切换逻辑
switchFn('.CLIENTS .dots .dot');

// testimonials 下 dot 切换逻辑
switchFn('.testimonials .dots .dot');
